new Vue({
  el: '#container', 
  data: {
	user: {
		username:"13000000002",
		password:"123456"
	}
  },
  methods: {
	login:function(){
		this.user.utype='user'
		user_login(this.user).then(data=> {
			Cookies.set('xa_portal_access_token',data.access_token, { domain: VUE_APP_SERVER_DOMAIN })
			Cookies.set('xa_portal_access_name',data.username, { domain: VUE_APP_SERVER_DOMAIN })
			Cookies.set('xa_portal_access_phone',this.user.username, { domain: VUE_APP_SERVER_DOMAIN })
			location.href="http://www.xuecheng.com"
		})
	}
  }
})
